<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width, height=device-height">
    <title>task</title>

    <link href="css/task.css" rel="stylesheet">
</head>
<body>
  <!--<script src="bundle.js"></script>-->
  <view class="taskBoard box-shadow" id="taskBoard" data-id="{{id}}" data-poster-org-id="{{poster.orgList[0]}}" catchtap="tapT_taskBoard" hover>
        <view class="contentLeft">
            <image class="taskIcon" src="{{ui_taskIcon}}" />
                <Text class="taskName">
                    {{ui_taskName}}
                </Text>
            
        </view>

        <view class="contentRight">

            <view class="userCtn">
                <image class="avatar" 
                    catchtap="tapT_taskBoard_pressAvatar"
                    data-user-id="{{poster.userId}}"
                    data-gender="{{poster.gender}}"
                    src="{{poster.avatar}}"
                ></image>
                <view class="userDescCtn">
                    <view class="nameCtn">
                        <span class="name">{{poster.nickname}}</span>
                        <span wx:if="{{poster.gender===1||poster.gender===2}}" class="gender {{poster.gender===1?'ho-gender-male color-male':'ho-gender-female color-female'}}"></span>
                        <!--<text class="createdTime">{{ui_createTime}}</text>-->

                        
                    </view>
                    <text class="createdTime">{{ui_createTime}}</text>
                </view>
                <view 
                    class="collectCtn" 
                    data-id="{{id}}"
                    data-task-types-id="{{taskTypesId}}"
                    data-is-collection="{{isCollection}}"
                    catchtap="tapT_taskBoard_collect">
                    <span wx:if="{{true}}" class="ho-star collect {{isCollection && 'collected'}}"/>
                </view>
            </view>

            <view class="rightMidCtn">
                <text class="summary">12015年7月14日 -  新的Reerrer Policy 规定了五种 Referrer 策略:No Referrer、No Referrer When Downgrade、Origin Only、Origin When Cross-origin、和 Unsafe URL。之前就存在的..</text>

                <template wx:if="{{imgList.length>0}}" is="imageShowcase" data="{{ui_imageShowcase}}"/>

                <template wx:if="{{voteList.length>0}}" is="votePanel" data="{{voteList, id}}"></template>

                <view wx:if="{{ui_mainType!==4&&ui_mainType!==6}}" class="detailRowCtn">
                    <span class="ho-time-solid detailIcon"/>
                    <text class="detailText">{{ui_showTime}}</text>
                </view>
                <view wx:if="{{ui_mainType===0 || ui_mainType===2}}" class="detailRowCtn">
                    <span class="ho-location-solid detailIcon"/>
                    <text class="detailText">{{pubLocation}}</text>
                </view>
                <view wx:if="{{ui_mainType===5}}" class="detailRowCtn">
                    <span class="ho-person detailIcon"/>
                    <text class="detailText">{{ui_candidate}}</text>
                </view>
                <view wx:if="{{taskTypesId!==402}}" class="detailRowCtn">
                    <span wx:if="{{ui_mainType===0||ui_mainType===1||ui_mainType===2||ui_mainType===3||ui_mainType===4||ui_mainType===6}}" class="rewardTitle">{{ui_rewardText}}</span>
                    <Image wx:if="{{!showCustomReward && rewardType===1 && rewardSubTypeIcon}}" class="rewardIcon" src="{{rewardSubTypeIcon}}" />
                    <Image wx:if="{{!showCustomReward && rewardType===2}}" class="rewardIcon" src="/img/user/card-icon.png" />
                    <span wx:if="{{ui_mainType===0||ui_mainType===1||ui_mainType===2||ui_mainType===3||ui_mainType===6}}" class="rewardContent">{{rewardDescription}}</span>
                    <span wx:if="{{ui_mainType===4 && rewardDescription!==''}}" class="rewardContent rmbTag">¥</span>
                    <span wx:if="{{ui_mainType===4}}" class="rewardContent  rmbText">{{rewardDescription===''?'免费':rewardDescription}}</span>
                </view>
            </view>

            <view class="rightBottomCtn" wx:if="{{!ui_isFinish}}">
                <view class="rightBottomItemCtn"
                    >
                    <span class="{{ui_mainType===1 ? 'ho-flag-solid' : 'ho-msg-solid'}} buttonTextIcon color-text-thirdly-light"></span>
                    <span class="buttonItemText color-text-thirdly">{{" " + (ui_mainType===1 ? candidateCount : commentCount)}}</span>
                </view>
                <!--
                <view class="rightBottomItemCtn"
                    hover-class="bgcolor-scene-bg"
                    hover="true"
                    >
                    <span class="ho-msg-solid buttonTextIcon color-text-thirdly-light"></span>
                    <span class="buttonItemText color-text-thirdly">{{" " + commentCount}}</span>
                </view>
                -->
                <!--<view class="rightBottomItemCtn" 
                    id="taskBoardShare" 
                    catchtap="tapT_taskBoard_share"
                    hover-class="bgcolor-scene-bg"
                    hover="true"
                    >
                    <span class="ho-share-solid buttonTextIcon color-text-thirdly-light"></span>
                    <span class="buttonItemText color-text-thirdly" open-type="share">{{"帮转"}}</span>
                </view>-->

                <button wx:if="{{!ui_isInSelf}}" class="rightBottomItemCtn shareBtn" 
                catchtap="tapT_taskBoard_share"
                open-type="{{ui_isInDetail ? 'share' : 'none'}}" plain >
                    <span class="ho-share-solid buttonTextIcon color-text-thirdly-light"></span>
                    <span>帮转</span>
                </button>

                <button wx:if="{{ui_isInSelf}}" class="rightBottomItemCtn shareBtn" plain >
                    <span class="ho-share-solid buttonTextIcon color-text-thirdly-light"></span>
                    <span>进详单转发</span>
                </button>


                <view wx:if="{{ !(ui_isInDetail && ui_mainType===1) && !(ui_mainType===7 && !ui_isSelf) }}" 
                    class="buttonCtn" 
                    id="taskBoardAccept" 
                    catchtap="tapT_taskBoard_accept" 
                    data-id="{{id}}"
                    data-poster="{{poster}}"
                    data-is-self="{{ui_isSelf}}"
                    data-main-type="{{ui_mainType}}"
                    data-task-type="{{taskTypesId}}"
                    hover-class="bgcolor-theme-dark"
                    hover="{{!ui_isSelf}}"
                    > 
                    <!--<span class="buttonItemTextAccept {{(ui_isSelf)? 'color-text-thirdly': 'color-white'}}">-->
                    <span class="buttonItemTextAccept color-white">
                    {{ui_isInDetail?ui_acceptTextInDetail:ui_acceptText}}</span>
                </view>
                <view wx:if="{{ui_isInDetail && (taskTypesId>=100 && taskTypesId<200)}}" class="buttonCtn blank" />
            </view>

            <view class="finishBottomCtn" wx:if="{{ui_isFinish}}">
                <image class="finishIcon" src="/img/task/finish.png"></image>
            </view>
        </view>

    </view>
</body>
</html>